<h2>Admin Portfolio CRUD</h2>
<a href="<?php echo URL; ?>\portfolio\admin_add">Add work in to portfolio</a>
<table>
<?php  if(isset($this->portfolio) && (count($this->portfolio) > 0)) :?>
<?php foreach($this->portfolio as $value): ?>
<tr>
    <td>
        <h3><?php echo $value['name_work']; ?></h3>
    </td>
    <td>
        <a href="#">Edit</a> | <a href="#">Delete</a>
    </td>
    
</tr>

<?php endforeach; ?> 
<?php  else : ?>
<tr>
    <td>
        <h2>There ara no data yet</h2>
    </td>
</tr>

<?php  endif; ?>
</table>
<p><a href="<?php echo URL . 'dashboard'?>">Back to dashboard</a></p>